package com.gk.panda.apis.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gk.panda.apis.dto.BoundaryDto;
import com.gk.panda.apis.dto.BoundarySaveDto;
import com.gk.panda.pojo.Boundary;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

public interface BoundaryService extends IService<Boundary> {

    /**
     * 分页查询勘界信息
     * @param dto
     * @return
     */
    Page<Boundary> getBoundary(BoundaryDto dto);

    /**
     * 添加勘界信息
     * @param dto
     * @return
     */
    boolean addBoundary(BoundarySaveDto dto);

    /**
     * 勘界导入模板下载
     *
     * @param response P
     */
    void downloadTemplate(HttpServletResponse response);

    /**
     * 导入勘界信息
     *
     * @param file P
     * @return R
     */
    String importBoundary(MultipartFile file);

    /**
     * 导出勘界信息
     *
     * @param response P
     */
    void exportBoundary(HttpServletResponse response);
}
